TTYNAME
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
ttyname - find name of a terminal
SYNOPSIS
#include <unistd.h>
char *ttyname(int fildes);
DESCRIPTION
ttyname returns a pointer to a string containing the null-
terminated path name of the terminal device associated with
file descriptor fildes. A NULL pointer is returned if fildes
does not describe a terminal device.
SEE ALSO
isatty(3)
NOTES
If MiNT is not active or a version of MiNT before 0.9 is used,
either /dev/aux or /dev/con is returned.
If MiNT 0.9 or later is used and no terminal name could be found,
/dev/tty is returned.
The return value points to static data whose contents is overwritten
by each call.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- NOTES
-
This document was created by
man2html,
using the manual pages.
Time: 11:15:16 GMT, June 22, 2025